  <script type="text/javascript">
    function odczytajStyl()
    {
      var tfW = document.getElementById("tfW");
      var tfH = document.getElementById("tfH");
      var tfBC = document.getElementById("tfBC");
      var div3 = document.getElementById("div3");
      
      tfW.value = div3.style.width;
      tfH.value = div3.style.height;
      tfBC.value = div3.style.backgroundColor;
    }
    function przypiszStyl()
    {
      var tfW = document.getElementById("tfW");
      var tfH = document.getElementById("tfH");
      var tfBC = document.getElementById("tfBC");
      var div3 = document.getElementById("div3");
      
      div3.style.width = tfW.value;
      div3.style.height = tfH.value;
      div3.style.backgroundColor = tfBC.value;
    }
    function usuStyl()
    {
      var tfW = document.getElementById("tfW");
      var tfH = document.getElementById("tfH");
      var tfBC = document.getElementById("tfBC");
      var div3 = document.getElementById("div3");
      
      div3.style.width = "";
      div3.style.height = "";
      div3.style.backgroundColor = "";
      
      tfH.value = "";
      tfW.value = "";
      tfBC.value = "";
    }
  </script>